package loki

// Option represents an option that can be used to configure a loki query.
type Option func(target *Loki)

// Loki represents a loki query.
type Loki struct {
	Ref          string
	Hidden       bool
	Expr         string
	LegendFormat string
}

// New creates a new prometheus query.
func ( string,  ...Option) *Loki {
	 := &Loki{
		Expr: ,
	}

	for ,  := range  {
		()
	}

	return 
}

// Legend sets the legend format.
func ( string) Option {
	return func( *Loki) {
		.LegendFormat = 
	}
}

// Ref sets the reference ID for this query.
func ( string) Option {
	return func( *Loki) {
		.Ref = 
	}
}

// Hide the query. Grafana does not send hidden queries to the data source,
// but they can still be referenced in alerts.
func () Option {
	return func( *Loki) {
		.Hidden = true
	}
}